﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace WpfTest
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }
        List<Orag> list = new List<Orag>();
        private void Window_Loaded_1(object sender, RoutedEventArgs e)
        {


            MyTreeView.Items.Add("AAA"); MyTreeView.Items.Add("BBB");
            MyTreeView.Items.Add("CCC");
            //MyTreeView.
        }
        public class Orag
        {
            public int id { get; set; }
            public int pid { get; set; }
            public string name { get; set; }

            public Orag(int id, int pid, string name)
            {
                this.id = id;
                this.pid = pid;
                this.name = name;
            }
        }
    }
}
